package com._520it.crm.service.impl;

import com._520it.crm.domain.Timetable;
import com._520it.crm.mapper.TimetableMapper;
import com._520it.crm.service.ITimetableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimetableServiceImpl implements ITimetableService {
	@Autowired
	private TimetableMapper timetableMapper;
	public void insert(Timetable record) {
		timetableMapper.insert(record);
	}

	public Timetable selectByPrimaryKey(Long id) {
		return timetableMapper.selectByPrimaryKey(id);
	}

	public List<Timetable> selectAll() {
		return timetableMapper.selectAll();
	}

	public void updateByPrimaryKey(Timetable record) {
		timetableMapper.updateByPrimaryKey(record);
	}
	public void deleteByPrimaryKey(Long id) {
		timetableMapper.deleteByPrimaryKey(id);
	}
}
